home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AOL File Library: 4,701 to 4,800
/
aol-file-protocol-4400-4701-to-4800.zip
/
AOLDLs
/
Autocad Utilities
/
MAKESCR_ V1.2 Script Generator
/
MAKESCR.exe
/
README.TXT
< prev
next >
Wrap
Text File
|
1997-02-17
|
3KB
|
75 lines
The following simple directions are provided to help you start using
SCRIPTER and script files.
Autocad has the ability to automate repetative sequences of commands by
reading a text file of commands. The text file of commands is then called
a "SCRIPT" file. Just as an actor can read a script of predetermined
lines in a play, Autocad can read a script of commands. The text file
must be saved with the extension ".SCR".
Now assume every time you decide to plot a drawing you issue the following
commands:
zoom
extents
qsave
plot
[enter]
[enter]
[enter]
Those comands can be saved as a SCRIPT file called PLOT.SCR.
(See file provided.)
By issuing the command SCRIPT (while in a drawing)
Autocad will prompt you to give it the location a script file.
If you respond by providing the location of PLOT.SCR you will have
effectively replaced four commands with one.
That illustration may not be very impressive. But what if you wanted
to run the same script file on every drawing in a directory.
The script might be to plot... or cut off certain layers, count blocks,
swap out borders, etc. Now you need SCRIPTER to merge the script file
with a command to open each drawing. The result will be a
large script file for Autocad to process.
SCRIPTER can be run from a DOS prompt. SCRIPTER creates a large script file.
Provide SCRIPTER with a path to a directory of drawings and the
path and name of a script file to run on each drawing. Use a text editor
to examine the "all*.scr" file produced by SCRIPTER.
SCRIPTER does not run the script, Autocad must read and run the script file.
Simple start up directions:
1) Make a directory on your C:\ drive called "SCRIPTS".
2) Change directory (cd) to the directory you just created and copy both
SCRIPTER and PLOT.SCR into that directory.
3) Assuming the path to your acad drawings is c:\acad\dwgs, issue
the following command:
SCRIPTER c:\acad\dwgs plot.scr
4) Note SCRIPTER responds by telling you how many drawings were located
in the directory c:\acad\dwgs. It also reports a new file is located in
that directory. It will be called allplot.scr. The origional script
file you provided is untouched.
5) When you return to Autocad issue the script command and tell Autocad to
use the file called allplot.scr.
6) WATCH!!!!
FOR YOUR INFORMATION.
If you have succesfully printed one drawing the plot settings are
already set and will be replicated again and again.
Before creating large script files for Autocad to process make sure the
model script file will run and terminate successfully. Test the script
plot.scr and note it only plots the drawing you are working on. But it
has the correct number of "newline" commands built in. Be careful when
you start counting [enter]'s.
I find it helpful to set cmddia=0 when creating script files. Autocad
reads script files as if cmddia=0. You can issue the command cmddia
from an Autocad command prompt.
If the script breaks because it can't find a menu or a font,
you can answer the question and then type RESUME to continue the script.
GOOD LUCK
RTALLEYJR@aol.com